package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 货品信息对象 sys_goods
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
public class SysGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 货品名称 */
    @Excel(name = "货品名称")
    private String name;

    /** 货品编号 */
    @Excel(name = "货品编号")
    private String goodsNumber;

    /** 货品描述 */
    @Excel(name = "货品描述")
    private String description;

    /** 货品单价 */
    @Excel(name = "货品单价")
    private BigDecimal unitPrice;

    /** 货品单位 */
    @Excel(name = "货品单位")
    private String unit;

    /** 供应商编号 */
    @Excel(name = "供应商编号")
    private String supplierNumber;

    /** 货品分类 */
    @Excel(name = "货品分类")
    private String category;

    /** 货品照片 */
    @Excel(name = "货品照片")
    private String photo;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setGoodsNumber(String goodsNumber) 
    {
        this.goodsNumber = goodsNumber;
    }

    public String getGoodsNumber() 
    {
        return goodsNumber;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setSupplierNumber(String supplierNumber) 
    {
        this.supplierNumber = supplierNumber;
    }

    public String getSupplierNumber() 
    {
        return supplierNumber;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("goodsNumber", getGoodsNumber())
            .append("description", getDescription())
            .append("unitPrice", getUnitPrice())
            .append("unit", getUnit())
            .append("supplierNumber", getSupplierNumber())
            .append("category", getCategory())
            .append("photo", getPhoto())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
